package com.tsf.demo.consumer.proxy;

import com.tsf.demo.commons.vo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

//调用order服务

@FeignClient(name = "tsf-order")
public interface OrderService {

    //查询产品
    @RequestMapping(value = "/product/{id}", method = RequestMethod.GET)
    public Product getProduct(@PathVariable String id);

}